# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年08月19日
"""
from docx import Document
import pandas as pd

data = pd.read_excel('./练习/表格.xlsx', header=None)
print(data)

file = Document('./练习/练习.docx')
table = file.add_table(3, 4)

for i in range(3):
	for j in range(4):
		table.cell(i, j).text = str(data.iloc[i, j])

file.save('./练习/09 结果05.docx')